package com.dolphin.common.component.var.model;

import com.dolphin.common.component.var.enums.VarTypeEnum;
import com.google.errorprone.annotations.Var;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

@Setter
@Getter
@ToString(callSuper = true)
public class ExtFuncVarModel extends ExtVarModel{
    public static final String FUNC_CATEGORY = "FUNC";
    public static final String PARAM_SPLITTER = ";";

    private String inputVarBid;
    private String functionType;
    private String params;
    private String inputVarCode;
    private String conditions;
    private String expressionStr;

    public ExtFuncVarModel() {
        this.setVarType(VarTypeEnum.EXT_FUNCTION_VAR);
    }

    @Override
    public String getBid() {
        return VarTypeEnum.EXT_FUNCTION_VAR.getIndex() + this.getId();
    }

    @Override
    public VarTypeEnum getVarType() {
        return VarTypeEnum.EXT_FUNCTION_VAR;
    }
}
